Class ShortestPath
java.lang.Object
edu.claflin.finder.algo.Algorithm
edu.claflin.finder.algo.shortestpath.ShortestPath
- All Implemented Interfaces:
Processable<Graph,Graph>
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.claflin.finder.algo.Algorithm
Algorithm.GraphSortOrder -
Field Summary
Fields inherited from class edu.claflin.finder.algo.Algorithm
args, PROP_PROGRESS -
Constructor Summary
ConstructorsConstructorDescriptionShortestPath(ArgumentsBundle bundle) Public Constructor for creating Shortest Path Algorithm. -
Method Summary
Methods inherited from class edu.claflin.finder.algo.Algorithm
addPropertyChangeListener, cull, getGraphSortOrder, getMinNodeCount, getPartiteNumber, getWeightName, removePropertyChangeListener, setGraphSortOrder, setMinNodeCount, setPartiteNumber, setProgress, setWeightName, zeropad
-
Constructor Details
-
ShortestPath
Public Constructor for creating Shortest Path Algorithm.- Parameters:
bundle- the ArgumentsBundle containing the arguments for the Algorithm object.
-
-
Method Details
-
process
Description copied from interface:ProcessableProcesses data.- Parameters:
graph- the T type object to process.- Returns:
- the S type object array produced by the processing.
-
removePaths
Private class for removing visited paths that not reach the destination node.- Parameters:
graph- the graph containing the shortest path with extra paths Algorithm object.from- starting Nodeto- ending Node- Returns:
- the Graph without fake visited paths
-